/**
 * This file is part of the FlexiTimer project.
 * 
 * Author: Florian Arndt <f.aarndt@web.de>
 *  	   Clemens Teichmann <>
 *
 * http://code.google.com/p/flexitimer/ 
 */

package flexitimer_client.calc;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import flexitimer_client.gui.optionFrame;

public class activateOption extends AbstractAction {

	private static activateOption instance = null;

	public activateOption() {
		super("OK");
	}

	// ---------------------------------------------------------------------------
	// --- private/public method(s)
	// ---------------------------------------------
	// ---------------------------------------------------------------------------
	public static activateOption getInstance() {
		if (instance == null) {
			instance = new activateOption();
		}
		return instance;
	}

	// ---------------------------------------------------------------------------
	// --- overwritten from 'AbstractAction'
	// -------------------------------------
	// ---------------------------------------------------------------------------
	public void actionPerformed(ActionEvent e) {
		optionFrame.getInstance().dispose();
	}
}
